<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */

$this->title = '编辑';
$this->params['breadcrumbs'][] = ['label' => '用户中心', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="users-update">

    <h3><?php echo Html::encode($this->title) ?></h3>
    <div class="users-form">

        <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>

        <?php echo $form->field($model, 'avatar')->fileInput()->label('头像')->hint('只能上传大小不超过1M,正方形的jpg,png,gif图片') ?>

        <?php echo $form->field($model, 'good')->textInput(['maxlength' => 128])->label('擅长') ?>

        <?php echo $form->field($model, 'password')->passwordInput(['maxlength' => 64])->label('密码') ?>

        <?php echo $form->field($model, 'password_confirm')->passwordInput(['maxlength' => 64])->label('再次输入密码') ?>

        <div class="form-group">
            <?php echo Html::submitButton('更新', ['class' => 'btn btn-success']) ?>
        </div>

        <?php ActiveForm::end(); ?>

    </div>
</div>